import { Commit } from "vuex";

interface IState {
  list: Array<Ilists>;
  list_header: Array<Ilist_header>;
}
interface IbeforeTitleLable {
  img: string;
  width: number;
  height: number;
}
interface Ilist_header {
  beforePriceLabelType: boolean;
  dtitle: string;
  goodsid: string;
  huodongtype: string;
  id: string;
  isShow: boolean;
  istamll: boolean;
  jiage: string;
  pic: string;
  quanJine: number;
  sellNum: string;
  shortTag: string;
  title: string;
  tmall: boolean;
  xiaoliang: string;
  yuanjia: number;
}
interface Ilists {
  beforePriceLabelType: boolean;
  beforeTitleLable: IbeforeTitleLable[];
  comment: number;
  comments: number;
  dtitle: string;
  fresh: boolean;
  goodsid: string;
  huodongtype: boolean;
  id: number;
  isHaitao: boolean;
  labelOne: string;
  labelTwo: string;
  pic: string;
  shopLable: string;
  title: string;
  xiaoliang: string;
  yuanjia: number;
}
interface Ininelist {
  namespaced: boolean;
  state: IState;
  actions: {
    getNineList(
      { commit }: { commit: Commit },
      {
        params,
      }: {
        params: {
          cid: string;
          pageNo: string;
          pageSize: string;
        };
      }
    ): void;
    getHeaderList({ commit }: { commit: Commit }): void;
  };
  mutations: {
    GET_NINELIST(state: IState, { payload }: { payload: Ilists[] }): void;
    GET_HEADERLIST(
      state: IState,
      { payload }: { payload: Ilist_header[] }
    ): void;
  };
}
export { Ininelist };
